﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace Bzzb.Model
{
    [Table(Name = "luxian")]
    public class LuXian
    {
        [Column(IsIdentity = true, IsPrimary = true, Name = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "xjx")]
        [Description("巡检项")]
        [JsonProperty("xjx")]
        public string Xjx { get; set; }

        [Column(Name = "content", StringLength = -1)]
        [Description("巡检内容及标准")]
        [JsonProperty("content")]
        public string Content { get; set; }

        [Column(Name = "lxmc")]
        [Description("路线名称")]
        [JsonProperty("lxmc")]
        public string Lxmc { get; set; }

        [Column(Name = "height")]
        [Description("巡检设备高度")]
        [JsonProperty("height")]
        public string Height { get; set; }

        [Column(Name = "dd")]
        [Description("Excel中的D坐标")]
        [JsonProperty("dd")]
        public string Dd { get; set; }

        [Column(Name = "ee")]
        [Description("Excel中的E坐标")]
        [JsonProperty("ee")]
        public string Ee { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("created")]
        public DateTime CreateTime { get; set; }

        [Column(Name= "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("updated")]
        public DateTime UpdateTime { get; set; }
    }
}
